package com.haiyangwang1.lesson5;

public class Cat extends Animal{
    public Cat(String food,String sound){
        super(food,sound);
    }
    @Override
    public void eat(){
        System.out.println("小猫爱吃"+this.getFood());
    }
    public void sound(){
        System.out.println("小猫咪"+this.getSound());
    }
    public void playBall(){
        System.out.println("小猫咪喜欢玩皮球");
    }
}
